function scrollToElement(n){n.preventDefault();var t=$(this),i=t.data("scroll-to");$(i).scrollView()}function handleScroll(){$("body").toggleClass("scroll-top",$(window).scrollTop()>0)}function notificationsPlaceholderHeight(){var n=$(".site-notifications").outerHeight();$(".site-notifications-placeholder").css("height",n);$(".site-header.-fixed").css("top",n)}function searchForm(){function i(n){window.location=n.url}var t=$("#header .search-form"),n=t.find("input[type=text]");t.on("click",".search-trigger",function(){var t=n.closest(".site-header");t.hasClass("showSearch")?n.closest("form").submit():(n.focus(),t.addClass("show-search"))}).on("focusout",'input[type="text"]',function(){setTimeout(function(){n.closest(".site-header").removeClass("show-search")},500)});$(document).on("click",".typeahead li",function(){var n=$(this).data("value");$(this).closest("ul").prev().val(n.name);i(n)});n.typeahead({items:8,minLength:2,delay:500,autoSelect:!1,source:function(n,t){return $.post("..\\card\\searchautocomplete.html",{term:n},function(n){t(n)})},cancel:function(){t.submit()},afterSelect:i}).on("typeahead.show",function(){$("#header").addClass("typeahead-open")}).on("typeahead.hide",function(){$("#header").removeClass("typeahead-open")});t.on("click",".typeahead a",function(){var n=$(this).closest("li").data("value");$(this).closest("ul").prev().val(n.name);i(n)})}function mobileNavBtn(){$(".mobile-nav-btn").on("click",function(){$("body").toggleClass("open-nav").removeClass("open-user-nav");$("#nav").slideToggle()});$(document).mouseup(function(n){var t=$("#nav"),i=$(".mobile-nav-btn");!$("body").hasClass("open-nav")||i.is(n.target)||i.has(n.target).length!==0||t.is(n.target)||t.has(n.target).length!==0||($("body").removeClass("open-nav").removeClass("open-user-nav"),$("#nav").slideToggle())})}function userIcon(){$(".user-icon").on("click",function(){$("body").toggleClass("open-user-nav").removeClass("open-nav");$(window).width()<=768?$("#nav").slideUp():$("#nav").find(".has-drop.open-drop").removeClass("open-drop").find(".drop").slideUp()})}function mobileNavDrops(){$(".header-primary-menu").on("click",".has-drop > a",function(n){var t=$(this),i=$(window).width();isMobile.any&&(i<=1024&&i>=768&&(n.preventDefault(),t.parent().siblings().each(function(){$(this).removeClass("open-drop").find(".drop").slideUp()}),t.next().slideToggle().parent().toggleClass("open-drop"),$("body").removeClass("open-user-nav").toggleClass("open-nav",$(".header-primary-menu .open-drop").length>0)),i<768&&(n.preventDefault(),t.next().slideToggle().parent().toggleClass("open-drop")))})}function removeInlineCSS(){$(window).width()>1366&&($("body").removeClass("open-nav"),$("#nav, .drop").removeAttr("style"),$(".has-drop").removeClass("open-drop"))}function toggleMobileFilters(){$("#filters-toggle-mobile").on("click",function(){$(window).width()<=1024&&$(this).next().slideToggle()})}function minSiteHeight(){var t=$(".site-notifications").length>0?$(".site-notifications").outerHeight(!0):0,i=$(".site-header").length>0?$(".site-header").outerHeight(!0):0,r=$(".below-header").length>0?$(".below-header").outerHeight(!0):0,u=$(".site-footer").length>0?$(".site-footer").outerHeight(!0):0,n=$(".main-content");contentHeight=$(window).height()-t-i-r-u;n.outerHeight()<=contentHeight?n.css("height",contentHeight):n.css("height","auto")}function modalHelperClass(){$(".modal").on("hidden.bs.modal",function(){$(".modal.in").length>0&&$("body").addClass("modal-open")})}function slickInit(){$().slick&&($(".related-invitations-slider").slick({slidesToShow:4,slidesToScroll:1,swipeToSlide:!0,dots:!1,arrows:!0,infinite:!0,focusOnSelect:!1,variableWidth:!1,adaptiveHeight:!1,responsive:[{breakpoint:992,settings:{slidesToShow:3,variableWidth:!1}},{breakpoint:700,settings:{slidesToShow:2,variableWidth:!1}}]}),$(".cards-slider-wide").slick({lazyLoad:"ondemand",slidesToScroll:5,arrows:!0,touchThreshold:10,dots:!0,arrows:!0,infinite:!0,focusOnSelect:!1,variableWidth:!0,adaptiveHeight:!1,responsive:[{breakpoint:9999,settings:{slidesToShow:20}},{breakpoint:1921,settings:{slidesToShow:15}},{breakpoint:599,settings:{slidesToShow:3,slidesToScroll:1,variableWidth:!1,dots:!1}},{breakpoint:400,settings:{slidesToShow:2,slidesToScroll:1,variableWidth:!1,dots:!1}}]}))}function masonryInit(){if($().isotope&&$().imagesLoaded){var n=$(".masonry").addClass("masonry-init").masonry({itemSelector:".grid-item",columnWidth:".grid-sizer",gutter:0,isFitWidth:!0});$(".search-filters-masonry").on("click","button",function(){$(this).addClass("active").siblings().removeClass("active");var t=$(this).attr("data-filter");n.isotope({filter:t})});$.fn.masonryImagesReveal=function(n){console.log("masonryImagesReveal");var t=this.data("masonry"),i=t.options.itemSelector,r=$("#ads-container"),u=$("#ads-container").find(".grid-item");return n.hide(),this.append(n),n.imagesLoaded().progress(function(n,r){$(t).addClass("masonry-init");var u=$(r.img).parents(i);u.show();t.appended(u)}),this};function t(){var t=n.nextAll(".masonry-items"),i=t.html();return $(i)}}}function helpSideNav(){var n,t;if($().scrollspy){n={helpToc:"#help-toc",helpDropDown:"#help-dropdown",$helpTopics:$(".help-topic"),$tocSidebar:$(".help-sidebar"),init:function(){var i=$("#site-notifications"),t=i.length>0?$("#site-notifications").outerHeight():0;n.createToc();n.clickToc();n.tocNavigationMobile();n.tocNavWidth();$("body").scrollspy({target:n.helpToc,offset:t+15});n.$tocSidebar.affix({offset:{top:n.$tocSidebar.offset().top-t,bottom:$(".site-footer").outerHeight(!0)+40}});$(window).on("load scroll",function(){n.$tocSidebar.hasClass("affix-bottom")||n.$tocSidebar.css("top",t)});n.$tocSidebar.css("top",t)},createToc:function(){var t=0,i=0;n.$helpTopics.each(function(r){var f=$(this),s=f.find(".topic-title").text(),h=f.find(".topic-sub-title"),u="",e="",o;o=r==0?"open":"";f.attr("id","topic"+i);u='
  • '+s+'<\/li>